Ext.define('extjs6test.view.core.DepartmentGrid',{
    extend:'extjs6test.view.base.BaseGrid',
    alias:'widget.departmentgrid',
    initComponent:function () {
        this.store = Ext.create('extjs6test.store.Department');
        this.columns = [
            { dataIndex:'departCode',text:'DepartCode',flex:0.5},
            { dataIndex:'departName',text:'DepartName',flex:1},
            { dataIndex:'departLevel',text:'DepartLevel'},
            { dataIndex:'parent.departName',text:'Parent Depart Name',flex:1},
            { dataIndex:'parent.departLevel',text:'Parent Depart Level',flex:1}
        ];
        this.callParent(arguments);
    }
});